<!DOCTYPE html>
<html>
<head>
    <include file="Include:meta"/>
    <title></title>
    <include file="Include:style"/>
    <style>
        .w50 {
            width: 50px;
        }
    </style>
</head>
<body>

<div id="main">
    <div class="crumbs">
        <div class="right">
            <if condition="(is_permission('CRMH-T',NULL,1) or is_permission('CRMH-T',NULL,6))">
                <a href="__APP__/Contract/add" target="_blank" class="btn btn-add ml5">添加合同信息</a>
            </if>
        </div>
    </div>
    <div id="content">
        <include file="Crm:crm_project_header"/>
        <div class="table-scrollx">
            <table class="table table-bordered">
                <tr class="table-header fixed-table-header">
                    <td width="">合同编号</td>
                    <td width="">合同名称</td>
                    <td width="">合同金额</td>
                    <td width="">合同签订日期</td>
                    <td width="">签订人</td>
                    </if>
                </tr>
                <if condition="$res_contract eq NULL">
                    <tr>
                        <td class="text-center" colspan="11">暂无相关内容</td>
                    </tr>
                </if>
                <foreach name="res_contract" item="vo">
                    <tr>
                        <td><a class="xm_btn" href="__APP__/Contract/edit/id/{$vo['contract_id']}" target="_blank">
                            {$vo['number']}</a>
                        </td>
                        <td><a href="{$vo.file_url}" target="_blank" data-toggle="tooltip" data-placement="right"
                               title="下载"
                               class="ml5">{$vo['file_name']}<i class="glyphicon glyphicon-download-alt mr5"></i></a>
                        </td>
                        <td>{$vo['contract_money']}</td>
                        <td>{$vo['sign_contract_date']}</td>
                        <td>{:get_userName($vo['sign_user_id'])}</td>
                    </tr>
                </foreach>
                </if>
            </table>
        </div>
    </div>
</div>
</body>
<include file="Include:javascript"/>

</html>